package org.example.springdemo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @RequestMapping("/hello")
    public String hello(){
        return "hello Spring Boot";
    }

    @RequestMapping(value = "/hello2",method = RequestMethod.POST)
    public Integer hello2(){
        return 22;
    }
}
